<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.2.0/css/bootstrap.min.css">  
    <script src="https://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <script src="upload/pinyin-pro.js"></script>
    <script src="upload/baidu.js"></script>
   
<script>
var tvmlines = ["央视综合高清,tvming-CCTV1HD","央视财经高清,tvming-CCTV2HD","央视综艺高清,tvming-CCTV3HD","央视国际高清,tvming-CCTV4HD","央视体育高清,tvming-CCTV5HD","央视电影高清,tvming-CCTV6HD","央视军事农业高清,tvming-CCTV7HD","央视电视剧高清,tvming-CCTV8HD","央视纪录高清,tvming-CCTV9HD","央视科教高清,tvming-CCTV10HD","央视社会与法高清,tvming-CCTV12HD","央视体育赛事高清,tvming-CCTV5AHD","CHC电影高清,tvming-CHCMovieHD","BTV北京高清,tvming-BTV1HD","BTV文艺高清,tvming-BTV2HD","BTV体育高清,tvming-BTV6HD","BTV纪实高清,tvming-BTVJiShiHD","湖南卫视高清,tvming-HuNanHD","湖南经视高清,tvming-HuNanFinanceHD","湖北卫视高清,tvming-HuBeiHD","上海东方高清,tvming-SHDongFangHD","上海新闻综合高清,tvming-SHNewsHD","上海纪实高清,tvming-SHJiShiHD","上海体育高清,tvming-SHSportHD","上海电视剧高清,tvming-SHTeleplayHD","四川卫视高清,tvming-SiChuanTVHD","重庆卫视高清,tvming-ChongQingHD","江苏卫视高清,tvming-JiangSuHD","深圳卫视高清,tvming-ShenZhenHD","山东卫视高清,tvming-ShanDongHD","天津卫视高清,tvming-TianJinHD","浙江卫视高清,tvming-ZheJiangHD","黑龙江卫视高清,tvming-HeiLongJiangHD","广东卫视高清,tvming-GuangDongHD","辽宁卫视高清,tvming-LiaoNingHD","安徽卫视高清,tvming-AnHuiHD","广西卫视高清,tvming-GuangXiHD","东南卫视高清,tvming-DongNanHD","江西卫视高清,tvming-JiangXiHD","河北卫视高清,tvming-HeBeiHD","新视觉高清,tvming-XSJHD","幸福彩高清,tvming-XingFuCaiHD","新娱乐高清,tvming-DongFangYuLeHD","全纪实高清,tvming-QuanJiShiHD","第一财经高清,tvming-CBNHD","劲爆体育高清,tvming-JinBaoSportHD","游戏风云高清,tvming-YouXiFYHD","动漫秀场高清,tvming-DongManXCHD","欢笑剧场高清,tvming-HuanXiaoJCHD","魅力音乐高清,tvming-MeiLiYYHD","中国交通高清,tvming-DuShiJCHD","凤凰资讯高清,tvming-PhoenixinfoTVHD","凤凰卫视高清,tvming-PhoenixTVHD","凤凰香港高清,tvming-PhoenixHKHD","央视综合频道,tvming-CCTV1","央视财经频道,tvming-CCTV2","央视综艺频道,tvming-CCTV3","央视国际频道,tvming-CCTV4","央视体育频道,tvming-CCTV5","央视电影频道,tvming-CCTV6","央视军事农业频道,tvming-CCTV7","央视电视剧频道,tvming-CCTV8","央视纪录频道,tvming-CCTV9","央视科教频道,tvming-CCTV10","央视戏曲频道,tvming-CCTV11","央视社会与法频道,tvming-CCTV12","央视新闻频道,tvming-CCTVNEWS","央视少儿频道,tvming-CCTVChild","央视音乐频道,tvming-CCTVMusic","央视娱乐频道,tvming-CCTVYuLe","央视电影国际频道,tvming-CCTV6World","CCTV高网,tvming-CCTVGW","CCTV风云足球,tvming-CCTVFYZQ","CCTV风云音乐,tvming-CCTVFYYY","CCTV风云剧场,tvming-CCTVFYJC","CCTV怀旧剧场,tvming-CCTVHJJC","CHC家庭电影,tvming-CHCFM","CHC动作电影,tvming-CHCAM","教育一套,tvming-CETV1","教育二套,tvming-CETV2","教育三套,tvming-CETV3","空中课堂,tvming-CETVSky","BTV北京卫视,tvming-BTV1","BTV文艺频道,tvming-BTV2","BTV科教频道,tvming-BTV3","BTV影视频道,tvming-BTV4","BTV财经频道,tvming-BTV5","BTV体育频道,tvming-BTV6","BTV生活频道,tvming-BTV7","BTV青年频道,tvming-BTV8","BTV新闻频道,tvming-BTV9","BTV卡酷少儿,tvming-KAKU","BTV北京国际,tvming-BTVWorld","四川卫视,tvming-SiChuanTV","四川康巴卫视,tvming-KangBaTV","上海东方卫视,tvming-SHDongFangTV","上海生活时尚,tvming-SHFashion","上海纪实频道,tvming-SHJiShi","上海新闻综合,tvming-SHNews","上海体育频道,tvming-SHSport","上海艺术频道,tvming-SHYiShu","上海哈哈少儿,tvming-SHChild","上海国际频道,tvming-ICS","上海第一财经,tvming-CBN","上海东方国际,tvming-SHDongFangWorld","上海新娱乐,tvming-DongFangYuLe","上海炫动卡通,tvming-TOONMAXTV","上海极速汽车,tvming-ChannelMax","湖南卫视,tvming-HuNanTV","湖南都市频道,tvming-HuNanCity","湖南经视频道,tvming-HuNanFinance","湖南电影频道,tvming-HuNanMovie","湖南公共频道,tvming-HuNanPublic","湖南电视剧频道,tvming-HuNanTeleplay","湖南国际频道,tvming-HuNanWorld","湖南娱乐频道,tvming-HuNanYuLe","湖南金鹰纪实,tvming-HuNanJiShi","湖南金鹰卡通,tvming-HuNanKT","湖南快乐购,tvming-KuaiLeGou","长沙经贸频道,tvming-ChangShaFinance","长沙互动频道,tvming-ChangShaHuDong","长沙新闻频道,tvming-ChangShaNews","长沙女性频道,tvming-ChangShaWomen","长沙政法频道,tvming-ChangShaZhengFa","江苏卫视,tvming-JiangSuTV","江苏城市频道,tvming-JiangSuCity","江苏教育频道,tvming-JiangSuEdu","江苏影视频道,tvming-JiangSuMovie","江苏公共频道,tvming-JiangSuPublic","江苏体育频道,tvming-JiangSuTiYu","江苏国际频道,tvming-JiangSuWorld","南京生活频道,tvming-NanJingLife","无锡新闻频道,tvming-WuXiNews","无锡都市资讯频道,tvming-WuXiInfo","无锡经济频道,tvming-WuXiFinance","无锡教育频道,tvming-WuXiEdu","江阴民生频道,tvming-JiangYinMinSheng","江阴新闻综合,tvming-JiangYinNews","安徽卫视,tvming-AnHuiTV","安徽科教频道,tvming-AnHuiEdu","安徽经济频道,tvming-AnHuiFinance","安徽影视频道,tvming-AnHuiMovie","安徽综艺频道,tvming-AnHuiZongYi","安徽公共频道,tvming-AnHuiPublic","安徽人物频道,tvming-AnHuiPeople","安徽国际频道,tvming-AnHuiWorld","浙江卫视,tvming-ZheJiangTV","浙江钱江都市频道,tvming-ZheJiangCity","浙江经济生活频道,tvming-ZheJiangFinance","浙江影视娱乐频道,tvming-ZheJiangFilm","浙江教育科技频道,tvming-ZheJiangEdu","浙江民生休闲频道,tvming-ZheJiangMinSheng","浙江公共新闻频道,tvming-ZheJiangPublic","浙江国际频道,tvming-ZheJiangWorld","山西卫视,tvming-Shan1XiTV","山西经济频道,tvming-Shan1XiFinance","山西科教频道,tvming-Shan1XiEdu","山西少儿频道,tvming-Shan1XiChild","山西影视频道,tvming-Shan1XiFilm","山西公共频道,tvming-Shan1XiPublic","黄河新闻频道,tvming-HuangHeNews","中国黄河频道,tvming-ChinaHuangHe","广东卫视,tvming-GuangDongTV","广东新闻频道,tvming-GDNews","广东体育频道,tvming-GDSport","广东珠江频道,tvming-GDZhuJiang","广东公共频道,tvming-GDPublic","广东嘉佳卡通,tvming-GDKT","广东经济科教,tvming-TVSFinance","广东南方省内版,tvming-TVSCity","广东南方全国版,tvming-SouthTV","广东影视频道,tvming-TVSMovie","广东少儿频道,tvming-TVSChild","广州综合频道,tvming-GZTV","广州新闻频道,tvming-GZNews","广州竞赛频道,tvming-GZJingSai","广州少儿频道,tvming-GZChild","广州经济频道,tvming-GZFinance","广州生活频道,tvming-GZEnglish","广州影视频道,tvming-GZMovie","深圳卫视,tvming-ShenZhenTV","深圳国际频道,tvming-ShenZhenWorld","新疆卫视,tvming-XinJiangTV","新疆维语新闻综合,tvming-XJTV2","新疆维语综艺,tvming-XJTV5","新疆维语经济生活,tvming-XJTV9","新疆少儿频道,tvming-XJTV12","兵团卫视,tvming-BingTuanTV","河南卫视,tvming-HeNanTV","河南都市频道,tvming-HeNanCity","河南国际频道,tvming-HeNanWorld","河北卫视,tvming-HeBeiTV","河北都市频道,tvming-HeBeiCity","河北经济频道,tvming-HeBeiFinance","河北影视频道,tvming-HeBeiMovie","广西卫视,tvming-GuangXiTV","广西都市频道,tvming-GuangXiCity","广西综艺频道,tvming-GuangXiZongYi","甘肃卫视,tvming-GanSuTV","甘肃文化影视,tvming-GanSuMovie","云南卫视,tvming-YunNanTV","云南公共频道,tvming-YunNanPublic","云南国际频道,tvming-YunNanWorld","江西卫视,tvming-JiangXiTV","江西影视频道,tvming-JiangXiMovie","天津卫视,tvming-TianJinTV","天津科教频道,tvming-TianJinEdu","陕西卫视,tvming-Shan3XiTV","陕西农林卫视,tvming-Shan3XiNL","东南卫视,tvming-DongNanTV","海峡卫视,tvming-HaiXiaTV","厦门卫视,tvming-XiaMenTV","厦门国际频道,tvming-XiaMenWorld","重庆卫视,tvming-ChongQingTV","重庆国际频道,tvming-ChongQingWorld","山东卫视,tvming-ShanDongTV","山东国际频道,tvming-TaiShanTV","山东教育电视,tvming-SDETV","湖北卫视,tvming-HuBeiTV","武汉电视剧频道,tvming-WuHanTeleplay","吉林卫视,tvming-JiLinTV","延边卫视,tvming-CYS","辽宁卫视,tvming-LiaoNingTV","黑龙江卫视,tvming-HeiLongJiangTV","西藏卫视,tvming-XiZangTV","内蒙古卫视,tvming-NeiMengGuTV","宁夏卫视,tvming-NingXiaTV","青海卫视,tvming-QingHaiTV","旅游卫视,tvming-TravelTV","贵州卫视,tvming-GuiZhouTV","影像中国,tvming-vVideoChina","中国新华新闻,tvming-XinHuaNews","CNCWorld,tvming-XinHuaNewsEn","CGTN,tvming-CCTVEN","CGTN Documentary,tvming-CCTV9World","CGTN Russian,tvming-CCTVR","CGTN French,tvming-CCTVF","CGTN Spanish,tvming-CCTVE","CGTN Arabic,tvming-CCTVA","美国有线电视新闻网,tvming-CNN","美国全国广播公司财经频道,tvming-CNBC","Channel V音乐台,tvming-ChannelV","探索亚洲频道,tvming-Discovery","国家地理野生频道,tvming-NatGeo","AXN亚洲频道,tvming-AXN","德国之声,tvming-DWTV","福克斯新闻频道,tvming-FoxNews","法兰西24小时新闻频道,tvming-France24","BBC新闻频道,tvming-BBCWorldNews","BBC探索频道,tvming-BBCWorldNews4","HBO亚洲频道,tvming-HBO","日本放送协会,tvming-NHK","俄罗斯国际电视频道,tvming-RTRPlaneta","CINEMAX亚洲电影频道,tvming-CINEMAX","卫视体育亚洲台,tvming-StarSport1","卫视体育2台,tvming-StarSport2","卫视国际电影,tvming-StarMovies","香港卫视,tvming-HKSTV","TVB翡翠台,tvming-XGFeiCui","TVB明珠台,tvming-XGMingZhu","TVB星河频道,tvming-TVBXH","有线新闻台,tvming-ICABLENews","有线新闻直播台,tvming-ICABLENewsLive","有线剧集,tvming-ICABLEJJ","有线体育台,tvming-ICABLESport","有线体育2台,tvming-ICABLEFB","凤凰电影台,tvming-PhoenixMovie","澳亚卫视,tvming-MasTV","澳门卫视,tvming-MSTV","中天综合,tvming-Ctitv","中天新闻频道,tvming-CtitvN","中视,tvming-CTV","台视,tvming-TTV","民视,tvming-FTVN","公视,tvming-PTS","华视,tvming-CTS","东森电影,tvming-ETTVM","东森超视,tvming-ETTVCS","东森综合,tvming-ETTVZH","东森财经,tvming-ETTVFinance","东森新闻,tvming-ETTVNews","东森洋片,tvming-ETTVYP","东森幼儿,tvming-ETTVYR","非凡新闻,tvming-USTV","星空卫视,tvming-XingKongTV","阳光卫视,tvming-SunShineTV","功夫卫视,tvming-KungFu","ACM盟传媒,tvming-vmeihuachuanmei","环球龙视GDTV,tvming-vGDTV","北美中国之窗,tvming-vChinaWindow"]
var cntvlines = ["CCTV1综合,cntv-cctv1","CCTV2财经,cntv-cctv2","CCTV3文艺,cntv-cctv3","CCTV4亚洲,cntv-cctv4","CCTV4欧洲,cntv-cctveurope","CCTV4美洲,cntv-cctvamerica","CCTV5体育,cntv-cctv5","CCTV6电影,cntv-cctv6","CCTV7军事农业,cntv-cctv7","CCTV8电视剧,cntv-cctv8","CCTV9纪录,cntv-cctvjilu","CCTV9纪录(英),cntv-cctvdoc","CCTV10科教,cntv-cctv10","CCTV11戏曲,cntv-cctv11","CCTV12社会与法,cntv-cctv12","CCTV13新闻,cntv-cctv13","CCTV14少儿,cntv-cctvchild","CCTV15音乐,cntv-cctv15","CCTVNEWS,cntv-cctv9","CCTV法语,cntv-cctvfrench","CCTV西班牙语,cntv-cctvxiyu","CCTV阿拉伯语,cntv-cctvarabic","CCTV俄语,cntv-cctvrussian","CCTV体育赛事,cntv-cctv5plus","CCTV电影,cntv-cctvdianying","CCTV世界地理,cntv-shijiedili","CCTV中学生,cntv-zhongxueshengpindao","CCTV中视购物,cntv-dianshigouwu","CCTV发现之旅,cntv-faxianzhilv","CCTV国防军事,cntv-guofang","CCTV央视台球,cntv-taiqiu","CCTV央视文化精品,cntv-jingpin","CCTV女性时尚,cntv-shishang","CCTV娱乐,cntv-cctvyule","CCTV怀旧剧场,cntv-hjjc","CCTV戏曲,cntv-cctvxiqu","CCTV新科动漫,cntv-xinkedongman","CCTV气象,cntv-cctvqixiang","CCTV电视指南,cntv-zhinan","CCTV第一剧场,cntv-diyijuchang","CCTV老故事,cntv-cctvlaogushi","CCTV风云剧场,cntv-fyjc","CCTV风云足球,cntv-cctvfyzq","CCTV风云音乐,cntv-fyyy","CCTV高尔夫网球,cntv-cctvgaowang","安徽卫视,cntv-anhui","北京卫视,cntv-btv1","兵团卫视,cntv-bingtuan","重庆卫视,cntv-chongqing","东方卫视,cntv-dongfang","东南卫视,cntv-dongnan","广东卫视,cntv-guangdong","广西卫视,cntv-guangxi","甘肃卫视,cntv-gansu","贵州卫视,cntv-guizhou","河北卫视,cntv-hebei","河南卫视,cntv-henan","黑龙江卫视,cntv-heilongjiang","湖北卫视,cntv-hubei","湖南卫视,cntv-hunan","吉林卫视,cntv-jilin","江苏卫视,cntv-jiangsu","江西卫视,cntv-jiangxi","辽宁卫视,cntv-liaoning","旅游卫视,cntv-travel","内蒙古卫视,cntv-neimenggu","宁夏卫视,cntv-ningxia","青海卫视,cntv-qinghai","山东卫视,cntv-shandong","山东教育台,cntv-sdetv","深圳卫视,cntv-shenzhen","陕西卫视,cntv-shan3xi","山西卫视,cntv-shan1xi","四川卫视,cntv-sichuan","天津卫视,cntv-tianjin","西藏卫视,cntv-xizang","厦门卫视,cntv-xiamen","新疆卫视,cntv-xinjiang","香港卫视,cntv-xianggangweishi","延边卫视,cntv-yanbian","云南卫视,cntv-yunnan","浙江卫视,cntv-zhejiang","DV生活,cntv-dvshenghuo","中国3D电视试验,cntv-cctv3d","书画,cntv-shuhua","先锋纪录,cntv-xianfengjilu","卫生健康,cntv-wsjk","国学(说文解字),cntv-shuowenjiezi","天元围棋,cntv-tianyuanweiqi","宝贝家,cntv-baobeijia","彩民在线,cntv-caimingzaixian","快乐垂钓,cntv-kuailechuidiao","摄影,cntv-sheyingpindao","文物宝库,cntv-wenwubaoku","早期教育,cntv-zaoqijiaoyu","梨园,cntv-cctvliyuan","武术世界,cntv-wushushijie","汽摩,cntv-cctvqimo","游戏竞技,cntv-youxijingji","环球奇观,cntv-huanqiuqiguan","现代女性,cntv-xiandainvxing","留学世界,cntv-liuxueshijie","老年福,cntv-cctvlaonianfu","英语辅导,cntv-yingyufudao","证券资讯,cntv-cctvzhengquanzixun","靓妆,cntv-cctvliangzhuang","高尔夫,cntv-gaoerfu","BTV文艺,cntv-btv2","BTV科教,cntv-btv3","BTV影视,cntv-btv4","BTV财经,cntv-btv5","BTV体育,cntv-btv6","BTV生活,cntv-btv7","BTV青少,cntv-btv8","BTV新闻,cntv-btv9","BTV卡酷少儿,cntv-btvchild","BTV纪实,cntv-btvjishi","BTV国际,cntv-btvInternational","天津1套,cntv-tianjin1","天津2套,cntv-tianjin2","滨海新闻综合,cntv-tianjinbh","滨海综艺频道,cntv-tianjinbh2","广西综艺,cntv-guangxizy","珠海一套,cntv-zhuhaiyitao","珠海二套,cntv-zhuhaiertao","成都新闻综合,cntv-cdtv1","成都经济资讯服务,cntv-cdtv2new","成都公共,cntv-cdtv5","辽宁都市,cntv-liaoningdushi","宁波一套,cntv-nbtv1","宁波二套,cntv-nbtv2","宁波三套,cntv-nbtv3","宁波四套,cntv-nbtv4","宁波五套,cntv-nbtv5","厦门一套,cntv-xiamen1","厦门二套,cntv-xiamen2","厦门三套,cntv-xiamen3","厦门四套,cntv-xiamen4","CETV1,cntv-cetv1","CETV2,cntv-cetv2","CETV3,cntv-cetv3","潮州综合,cntv-cztv1","潮州公共,cntv-cztv2","佛山新闻综合,cntv-foshanxinwen","韶关综合,cntv-shaoguanzonghe","石家庄三套,cntv-shijiazhuangsantao","内蒙古文化频道,cntv-neimengwh","巴音郭勒蒙语频道,cntv-tsbztv2","湖北公共,cntv-hubeigonggong","湖北教育,cntv-hubeijiaoyu","湖北影视,cntv-hubeiyingshi","湖北经视,cntv-hubeijingshi","湖北购物,cntv-hubeigouwu","襄阳广播电视台,cntv-xiangyangtai","南通新闻频道,cntv-nantongxinwen","南通社教频道,cntv-nantongshejiao","阜阳新闻综合频道,cntv-fyxw","阜阳都市频道,cntv-fyds","阜阳公共频道,cntv-fygg","阜阳教科农频道,cntv-fykj","新疆维语综合频道,cntv-tsxjtv2","新疆哈语综合频道,cntv-tsxjtv3","新疆维语综艺频道,cntv-tsxjtv5","新疆哈语综艺频道,cntv-tsxjtv8","新疆维语经济生活频道,cntv-tsxjtv9"]
var epglists = ["4K综艺", "ABCAUSTRALIA", "ALJAZEERA", "AMC", "ANIMAX", "ARIRANGTV", "AXN", "BABYTV", "BBCEARTH", "BBCLIFESTYLE", "BBCWORLDNEWS", "BLOOMBERGTV", "BLUEANTENTERTAINMENT", "BLUEANTEXTREME", "BOOMERANG", "BTV体育", "BTV影视", "BTV文艺", "BTV新闻", "BTV生活", "BTV科教", "BTV财经", "CATCHPLAY电影", "CBEEBIES", "CCTV1", "CCTV10", "CCTV11", "CCTV12", "CCTV13", "CCTV14", "CCTV15", "CCTV16", "CCTV17", "CCTV2", "CCTV3", "CCTV4", "CCTV4K", "CCTV4欧洲", "CCTV4美洲", "CCTV5", "CCTV5+", "CCTV6", "CCTV7", "CCTV8", "CCTV9", "CCTV娱乐", "CCTV戏曲", "CCTV电影", "CDTV1", "CDTV2", "CDTV3", "CDTV4", "CDTV5", "CDTV6", "CGTN", "CGTN俄语", "CGTN法语", "CGTN西语", "CGTN阿语", "CHANNELNEWSASIA", "CHC动作电影", "CHC家庭影院", "CHC高清电影", "CI", "CINEMAWORLD", "CINEMAX", "CNBCHONGKONG", "CNEX", "CNN", "CN卡通", "DISCOVERY", "DISCOVERYASIA", "DISCOVERY科学", "DISNEY", "DMAX", "DOXTV", "DOX剧场", "DOX英伦", "DOX雅趣", "DREAMWORKS", "DW", "ELEVEN体育一台", "ELEVEN体育二台", "ELTV", "ETTODAY", "EURONEWS", "EUROSPORT", "EVE", "EYE戏剧", "EYE旅游", "FASHIONONE", "FASHIONTV", "FOODNETWORK美食台", "FOX", "FOXMOVIES", "FRANCE24", "GOODTV", "GOODTV2", "GTV游戏竞技", "HBO", "HBOFAMILY", "HBOHD", "HBOHITS", "HBOSIGNATURE", "HGTV居家乐活", "HISTORY", "HITS", "HKS", "IFUN1", "IFUN3", "IPTV5+", "IPTV6+", "IPTV少儿动画", "IPTV热播剧场", "IPTV经典电影", "IPTV魅力时尚", "J2", "JET综合台", "LIFETIME", "LSTIME电影台", "LUXETV", "MEZZOLIVEHD", "MOMO亲子台", "MTV", "MTV综合", "MY101综合", "MYCINEMAEUROPE", "MYKIDS", "NEWTV中国功夫", "NEWTV军事评论", "NEWTV军旅剧场", "NEWTV农业致富", "NEWTV动作电影", "NEWTV古装剧场", "NEWTV家庭剧场", "NEWTV怡伴健康", "NEWTV惊悚悬疑", "NEWTV武搏世界", "NEWTV潮妈辣婆", "NEWTV炫舞未来", "NEWTV热播精选", "NEWTV爱情喜剧", "NEWTV精品体育", "NEWTV精品大剧", "NEWTV精品纪录", "NEWTV精品综合", "NEWTV超级体育", "NEWTV超级电影", "NEWTV超级电视剧", "NEWTV超级综艺", "NEWTV金牌综艺", "NHK", "NHKWORLD", "NHKWORLDPREMIUM", "NICKELODEON", "NICKJR.", "NOW剧集台", "NOW华剧台", "NOW影视点播站", "NOW新闻台", "NOW爆谷台", "NOW爆谷星影台", "NOW直播台", "NOW财经台", "OUTDOOR", "ROLLOR", "SBN全球财经台", "SCTV2", "SCTV3", "SCTV4", "SCTV5", "SCTV7", "SCTV8", "SCTV9", "SKYNEWS", "SMART知识", "SONYMAX", "SONYSAB", "STARMOVIESHD", "TFC", "THRILL", "TLC旅游生活", "TRACESPORTS", "TRACEURBAN", "TRAVELCHANNEL", "TV5MONDE", "TVBS", "TVBS新闻台", "TVBS欢乐台", "TVBS精采台", "TVB剧场", "TVB经典台", "TVN", "VIUTV", "VIUTVSIX", "WARNERTV", "Z", "七彩戏剧", "三沙卫视", "三立台湾台", "三立戏剧", "三立新闻台", "三立综合台", "三立财经新闻台", "三立都会台", "上海五星体育", "上海外语", "上海娱乐", "上海教育台", "上海新闻综合", "上海星尚", "上海电视剧", "上海第一财经", "上海纪实", "上海艺术人文", "上海都市", "上视东方影视", "上视新闻", "上视纪实", "世界地理", "东南卫视", "东方卫视", "东方影视", "东方电影", "东森亚洲卫视", "东森亚洲新闻台", "东森幼幼台", "东森戏剧台", "东森新闻台", "东森洋片台", "东森电影台", "东森综合台", "东森财经新闻台", "东森超视", "东风卫视", "中华特产", "中国交通", "中国天气", "中国教育1台", "中国教育2台", "中国教育3台", "中国教育4台", "中天亚洲台", "中天娱乐台", "中天新闻台", "中天综合台", "中学生", "中视", "中视新闻", "中视经典", "中视菁采台", "书画", "云上电影院", "云南公共", "云南卫视", "云南娱乐", "云南少儿", "云南影视", "云南生活", "云南都市", "五星体育", "亚洲新闻台", "亚洲旅游台", "亚洲综合", "亚洲美食", "京视剧场", "人间卫视", "仙游电视", "优优宝贝", "优漫卡通", "佛卫慈悲台", "信吉电视台", "信大", "先锋乒羽", "全大电视台", "全纪实", "八大优", "八大娱乐台", "八大戏剧台", "八大第一台", "八大综合台", "公视", "公视2", "公视三台", "兰州公共", "兰州新闻综合", "兰州生活经济", "兵器科技", "兵团卫视", "内蒙古农牧", "内蒙古卫视", "内蒙古少儿", "内蒙古文体娱乐", "内蒙古经济生活", "冠军梦想台", "冬奥纪实", "凤凰中文", "凤凰卫视中文台", "凤凰卫视资讯台", "凤凰卫视香港台", "凤凰资讯", "凤凰香港", "创世电视", "动感音乐", "动漫电影", "动漫秀场", "动物星球", "劲爆体育", "北京4K", "北京体育休闲", "北京卫视", "北京国际频道", "北京大健康", "北京影视", "北京文艺", "北京新闻", "北京淘BABY", "北京淘剧场", "北京淘娱乐", "北京淘电影", "北京淘精彩", "北京生活", "北京纪实", "北京财经", "十方法界", "半岛英语", "华数亚洲影院", "华数探索纪录", "华数欧美影院", "华数漫游世界", "华数电子竞技", "华数精品剧场", "华数风尚音乐", "华数高清娱乐", "华纳电视", "华艺MBC", "华艺影剧", "华藏卫视", "华视", "华语电影HD", "南京信息", "南京十八", "南京娱乐", "南京少儿", "南京影视", "南京教科", "南京新闻综合", "南京生活", "南京电视台", "南方卫视", "南方少儿", "南方影视", "南方经济", "南方综艺", "南通新闻综合", "南通社教", "博斯无限二台", "博斯无限台", "博斯网球台", "博斯运动一台", "博斯运动二台", "博斯高球1台", "博斯高球2台", "博斯魅力网", "卡酷动画", "卡酷少儿", "卫生健康", "卫视中文台", "卫视电影台", "原住民", "厦门一套", "厦门二套", "厦门卫视", "厦门移动", "厦门综合", "发现之旅", "台州公共", "台州城市生活", "台州文化生活", "台州新闻综合", "台湾戏剧", "台湾艺术台", "台视", "台视新闻台", "台视综合台", "台视财经台", "吉安一套", "吉安三套", "吉安二套", "吉林卫视", "吉视乡村", "吉视影视", "吉视生活", "吉视综艺文化", "吉视都市", "吴江新闻综合", "咪咕24小时体育", "咪咕综合体育", "咪咕足球", "哈哈少儿", "哈哈炫动", "唯心电视", "嘉丽购物", "嘉佳卡通", "四川卫视", "四海钓鱼", "国兴卫视", "国学", "国家地理", "国家地理(台湾)", "国家地理野生", "壹电视新闻台", "壹电视电影台", "壹电视综合台", "外汇理财", "大爱一台", "大爱二台", "大立电视台", "天元围棋", "天天电视", "天映经典", "天津体育", "天津卫视", "天津少儿", "天津影视", "天津文艺", "天津新闻", "天津都市", "天良综合台", "天龙八部集", "央广健康", "央视台球", "央视精品", "女性时尚", "好莱坞电影台", "宁夏公共", "宁夏卫视", "宁夏影视", "宁夏经济", "安徽公共", "安徽农业科教", "安徽卫视", "安徽影视", "安徽经济生活", "安徽综艺体育", "客家电视台", "寰宇HD综合", "寰宇新闻", "寰宇财经", "少儿动漫", "山东体育", "山东公共", "山东卫视", "山东少儿", "山东影视", "山东教育", "山东教育卫视", "山东文旅", "山东新闻", "山东生活", "山东综艺", "山东齐鲁", "山西公共", "山西卫视", "山西影视", "山西社会与法治", "山西经济", "峨嵋电影", "常州公共", "常州新闻", "常州生活", "常州都市", "常德公共", "常德图文", "常德新闻", "常德都市", "年代MUCH", "年代新闻台", "幸福彩", "幸福空间居家台", "幼儿教育", "广东体育", "广东公共", "广东卫视", "广东国际", "广东少儿", "广东影视", "广东新闻", "广东珠江", "广东移动", "广东经济科教", "广东综艺", "广州影视", "广州新闻", "广州法治", "广州竞赛", "广西卫视", "广西国际", "广西影视", "广西新闻", "广西综艺旅游", "广西都市", "康巴卫视", "延边卫视", "弈坛春秋", "彩民在线", "影迷数位电影", "影迷数位纪实", "快乐垂钓", "怀旧剧场", "成龙作品集", "摄影", "数少儿动漫", "文化精品", "文物宝库", "新动漫", "新娱乐", "新片放映厅", "新疆体育健康", "新疆卫视", "新疆少儿", "新疆汉语影视", "新疆汉语经济", "新疆汉语综艺", "新科动漫", "新视觉", "旅游卫视", "无线新闻", "无线财经", "无锡娱乐", "无锡生活", "无锡经济", "早期教育", "时代出行", "时代家居", "时代风尚", "明珠台", "星卫HD电影", "星卫娱乐", "智林体育", "曼联电视", "曼迪日本", "杭州导视", "杭州影视", "杭州房产", "杭州文化", "杭州生活", "杭州综合", "杭州西湖明珠", "校园动漫", "梅迪奇艺术", "梨园", "欢笑剧场", "欧美动画", "欧美影院", "欧美电影HD", "正德电视台", "武术世界", "武汉外语", "武汉少儿", "武汉教育电视台", "武汉文体", "武汉新闻综合", "武汉电视剧", "武汉科技生活", "武汉经济", "武进人文", "武进娱乐", "武进影视", "武进新闻", "武进生活", "民视", "民视台湾台", "民视新闻台", "民视无线台", "民视第一台", "民视综艺台", "求索动物", "求索科学", "求索记录", "江苏休闲体育", "江苏优漫卡通", "江苏公共新闻", "江苏卫视", "江苏国际", "江苏城市", "江苏影视", "江苏教育电视台", "江苏综艺", "江西公共农业", "江西卫视", "江西少儿", "江西广播新闻", "江西新闻", "江西旅游影视", "江西电视", "江西电视指南", "江西经济生活", "江西都市", "汽摩", "沈阳新闻", "河北公共", "河北卫视", "河北少儿科教", "河北影视", "河北经济", "河北都市", "河南乡村", "河南公共", "河南卫视", "河南国际", "河南新农村", "河南新闻", "河南梨园", "河南民生", "河南法治", "河南电视剧", "河南都市", "法律服务", "法治天地", "泰州一套", "泰州三套", "济南鲁中", "浙江公共新闻", "浙江卫视", "浙江国际", "浙江少儿", "浙江影视", "浙江教科影视", "浙江数码时代", "浙江民生", "浙江民生休闲", "浙江经视", "浙江钱江都市", "海南公共", "海南卫视", "海南少儿", "海南文旅", "海南新闻", "海峡卫视", "海豚综合台", "深圳公共", "深圳卫视", "深圳娱乐", "深圳少儿", "深圳电视剧", "深圳财经生活", "深圳都市", "深视体育健康", "游戏竞技", "游戏风云", "湖北公共·新闻", "湖北卫视", "湖北垄上", "湖北影视", "湖北教育", "湖北生活", "湖北经济", "湖北综合", "湖南公共", "湖南卫视", "湖南卫视国际", "湖南娱乐", "湖南教育电视台", "湖南爱晚", "湖南电影", "湖南电视剧", "湖南经视", "湖南都市", "澳亚卫视", "炫动卡通", "爱世界", "爱体育", "爱军武", "爱动漫", "爱历史", "爱喜剧", "爱奇谈", "爱娱乐", "爱家庭", "爱尔达体育1", "爱尔达体育2", "爱尔达体育3", "爱尔达娱乐台", "爱尔达影剧", "爱尔达综合", "爱幼教", "爱怀旧", "爱悬疑", "爱探索", "爱旅行", "爱时尚", "爱江湖", "爱浪漫", "爱猎奇", "爱玩具", "爱电竞", "爱科学", "爱科幻", "爱经典", "爱美食", "爱解密", "爱谍战", "爱赛车", "爱都市", "爱院线", "爱青春", "环宇电影", "环球奇观", "环球旅游", "现代女性", "珠江", "珠江海外", "珠江电影", "甘肃公共", "甘肃卫视", "甘肃少儿", "甘肃文化影视", "甘肃经济", "甘肃都市", "生命", "生态环境", "生活时尚", "电竞天堂", "留学世界", "百姓健康", "睛彩中原", "睛彩竞技", "睛彩篮球", "睛彩羽毛球", "福建体育", "福建公共", "福建少儿", "福建教育", "福建文体", "福建新闻", "福建旅游", "福建电视剧", "福建经济", "福建综合", "移动戏曲", "第一剧场", "第一财经", "篮球", "精品剧场", "红色轮播", "纬来体育台", "纬来戏剧台", "纬来日本台", "纬来电影台", "纬来精采", "纬来综合台", "纬来育乐台", "纯享4K", "经典剧场", "美亚高清电影台", "美食星球", "翡翠台", "老故事", "芒果独播", "苏州新闻综合", "苏州社会经济", "茶", "莆田一套", "莆田二套", "莱芜综合", "莲花卫视", "西安丝路", "西安商务资迅", "西安影视", "西安新闻综合", "西安移动电视", "西安都市", "西藏卫视", "证券资讯", "诚心电视台", "象视界", "财富天下", "贵州公共", "贵州卫视", "贵州大众生活", "贵州影视文艺", "贵州法制", "贵州科教健康", "赣州一套", "赣州公共", "赣州四套", "赣州教育", "车迷", "辽宁体育", "辽宁公共", "辽宁北方", "辽宁卫视", "辽宁影视剧", "辽宁生活", "辽宁经济", "辽宁都市", "辽宁青少", "达文西", "运通财经", "追剧少女", "都市剧场", "采昌影剧", "重庆农村", "重庆卫视", "重庆国际", "重庆少儿", "重庆影视", "重庆文体娱乐", "重庆新闻", "重庆时尚生活", "重庆生活资讯", "重庆社会与法", "重庆科教", "金色学堂", "金鹰卡通", "金鹰纪实", "长沙公共", "长沙女性", "长沙影视", "长沙政法", "长沙新闻", "长沙知音", "长沙经贸", "阳光卫视", "陕西一套", "陕西七套", "陕西三套", "陕西二套", "陕西五套", "陕西八套", "陕西六套", "陕西农林卫视", "陕西卫视", "陕西四套", "霹雳台湾台", "青年学苑", "青海卫视", "靖天卡通台", "靖天国际", "靖天戏剧台", "靖天日本台", "靖天映画", "靖天欢乐台", "靖天电影台", "靖天综合台", "靖天育乐台", "靖天资讯台", "靖洋卡通台", "靖洋戏剧台", "非凡商业台", "非凡新闻台", "韩国娱乐台KMTV", "风云剧场", "风云足球", "风云音乐", "香港国际财经台", "香港开电视", "高尔夫网球", "高清大片", "高点综合台", "高点育乐台", "魅力足球", "黄河卫视", "黑莓动画", "黑莓电影", "黑龙江公共农业", "黑龙江卫视", "黑龙江少儿", "黑龙江影视", "黑龙江手机", "黑龙江文体", "黑龙江新闻法治", "黑龙江都市", "龙华偶像", "龙华动画", "龙华影剧", "龙华戏剧", "龙华日韩台", "龙华洋片", "龙华电影", "龙华经典", "龙祥时代"]
var epgs = epglists.join()
var tvmdic = {}
var cntvdic = {}
for (var i = 0; i <= tvmlines.length - 1; i++) {
  name = tvmlines[i].split(",")[0];
  tvg = tvmlines[i].split(",")[1];
  tvmdic[name] = tvg;
}
for (var i = 0; i <= cntvlines.length - 1; i++) {
  name = cntvlines[i].split(",")[0]; 
  tvg = cntvlines[i].split(",")[1]; 
  cntvdic[name] = tvg;
}



  function tran2m3ugroup(){
    var source = document.getElementById("source").value;
    var slists = source.split('\n');
    if (source.toUpperCase().indexOf('HTTP') != -1 ) {var result = "#EXTM3U</br>";} else {var result = "";}
    for (var i = 0; i <= slists.length - 1; i++) {
        var tvg = "";
        var logourl = ""
        var tvgname = "";
        var tid = "";
        var gname = "";
        var iptv = slists[i].split(",");
        if (!iptv[0] || iptv[1] == "undefined" || slists[i].indexOf('genre') != -1 || slists[i].toUpperCase().indexOf('HTTP') == -1 ) {continue;}
        if (iptv[0].toUpperCase().indexOf('CCTV') != -1 || iptv[0].toUpperCase().indexOf('央视') != -1 || iptv[0].toUpperCase().indexOf('中央') != -1 || iptv[0].toUpperCase().indexOf('CGTN') != -1 ) {gname="央视";} else if (iptv[0].toUpperCase().indexOf('卫视') != -1 && iptv[0].indexOf('凤凰') == -1 ) { gname="卫视";} else if (iptv[0].toUpperCase().match(/北京|上海|NEWTV|IHOT|河北|山西|辽宁|吉林|黑龙江|江苏|浙江|安徽|福建|江西|山东|河南|湖北|湖南|广东|海南|四川|贵州|云南|陕西|甘肃|青海|台湾|香港|重庆/g)) { gname=iptv[0].toUpperCase().match(/北京|上海|NEWTV|IHOT|河北|山西|辽宁|吉林|黑龙江|江苏|浙江|安徽|福建|江西|山东|河南|湖北|湖南|广东|海南|四川|贵州|云南|陕西|甘肃|青海|台湾|重庆|香港/g)[0];} else if (iptv[0].toUpperCase().indexOf('凤凰') != -1) { gname="香港";} else if (iptv[0].toUpperCase().match(/翡翠|明珠|民视|台视|华视|TVB|纬来|年代|原住民|中视|澳亚|东森|好消息电视台|大爱|博斯|ELEVEN|FOX|ASTRO|HBO|NIPPON|NHK|GSTV|无线/)) { gname="港澳台";} else if (iptv[0].toUpperCase().indexOf('BTV') != -1) { gname="北京";} else if (iptv[0].match(/世界地理|兵器科技|卫生健康|央视台球|女性时尚|怀旧剧场|文化精品|电视指南|第一剧场|风云剧场|风云足球|风云音乐|高尔夫网球|老故事|中学生/)) { gname="央视";} else { gname="其他";}
        tid = iptv[0].toUpperCase().replace(/\[.*?\]|[0-9\.]+M|[0-9]{3,4}[pP]?|[0-9\.]+FPS/g,"").trim().replace(/超高清|超清|高清$|蓝光|频道$|标清|FHD|HD$|HEVC|HDR|-|\s+/g,"").trim();
        if (tid.indexOf('CCTV') !=-1 && tid.indexOf('CCTV4K') ==-1) { var stid = tid.match(/CCTV[0-9+]{1,2}[48]?K?/);var sstid = tid.match(/CCTV[^0-9]+/);if (stid && stid.length > 0 ) {tvg = stid[0].replace(/4K/,"");} else if (sstid && sstid.length > 0 ) {tvg = sstid[0].replace(/CCTV/g,"")}} else {tvg = tid.replace(/BTV/g,"北京");};
        var tindex = epglists.findIndex(item => item.includes(tvg));
        if (tindex != -1) {tvgname = epglists[tindex];}
        if (!tvgname && tvg.indexOf("CCTV") == -1 && tvg.indexOf("CGTN") == -1) {
            var indext = epglists.findIndex(item => tvg.includes(item));
            if (indext != -1) {tvgname = epglists[indext];}
        }
        
        if (tvgname) {logourl = "https://epg.112114.xyz/logo/" + tvgname + ".png"} else {logourl = "https://epg.112114.xyz/logo/" + tid + ".png" ; tvgname = iptv[0];}
        var tname = '#EXTINF:-1,tvg-id="' + tvgname + '" ' + 'tvg-name="' + tvgname + '" tvg-logo="' + logourl + '" ' + 'group-title="' + gname + '",' + iptv[0] + '</br>';
        var turl = iptv[1] + "</br>";
        result += tname + turl
    }
    document.getElementById("res").innerHTML = result;
    if (result) {DisplayAndHiddenBtn("copytext", "d");} else {DisplayAndHiddenBtn("copytext", "h");}
    if (result) {DisplayAndHiddenBtn("downtext", "d");} else {DisplayAndHiddenBtn("downtext", "h");}

  }



  function tran2m3u(){
    var source = document.getElementById("source").value;
    var slists = source.split('\n');
    if (source.toUpperCase().indexOf('HTTP') != -1 ) {var result = "#EXTM3U</br>";} else {var result = "";}
    for (var i = 0; i <= slists.length - 1; i++) {
        var iptv = slists[i].split(",");
        if (!iptv[0] || iptv[1] === "undefined" || slists[i].toUpperCase().indexOf('HTTP') == -1) {continue;}
        var tname = "#EXTINF:-1," + iptv[0] + "</br>";
        var turl = iptv[1] + "</br>";
        result += tname + turl
    }
    document.getElementById("res").innerHTML = result;
    if (result) {DisplayAndHiddenBtn("copytext", "d");} else {DisplayAndHiddenBtn("copytext", "h");}
    if (result) {DisplayAndHiddenBtn("downtext", "d");} else {DisplayAndHiddenBtn("downtext", "h");}

  }

  function m3u2txt(){
    var source = document.getElementById("source").value;
    var slists = source.replace(/[\r\n]+/g,'@');
    var r = slists.match(/,([^,@]+)@([^@]+)/g)
    if (r) {result = r.map(m=>m.replace(/,/g,'').replace(/@/g,',').replace(/(\n[\s\t]*\r*\n)/g, '\n').replace(/^[\n\r\n\t]*|[\n\r\n\t]*$/g, '')).join('<br/>');}
    if (result) {document.getElementById("res").innerHTML = result;}
    if (result) {DisplayAndHiddenBtn("copytext", "d");} else {DisplayAndHiddenBtn("copytext", "h");}
    if (result) {DisplayAndHiddenBtn("downtext", "d");} else {DisplayAndHiddenBtn("downtext", "h");}

  }

  function trans(){
    var source = document.getElementById("source").value;
    var action = document.getElementById("action").value;
    var slists = source.split('\n');
    var result = "";
    var listdic = {};
    for (var i = 0; i <= slists.length - 1; i++) {
        iptv = slists[i].split(",");
        tvname = iptv[0].replace(/-/g,"").toUpperCase()
        if (!tvname || iptv[1] == "undefined" || slists[i].indexOf('genre') != -1 || slists[i].toUpperCase().indexOf('HTTP') == -1) {continue;}
        tvurl = iptv[1].replace(/PLTV/g, "TVOD");
        if ( tvurl.indexOf('TVOD') !=-1 ) { tvurl = tvurl + "?/PLTV/.smil" ;}
        if (listdic[tvname]) {if (tvurl.indexOf('TVOD') !=-1 && listdic[tvname].split("#")[0].indexOf('TVOD') ==-1) {listdic[tvname]=tvurl + "#" + listdic[tvname]; } else {listdic[tvname]=listdic[tvname]+"#"+tvurl; }} else {listdic[tvname]=tvurl;}
    }

    if (action == "tvming-yuanban") {
        for (var key in listdic) {
            var firsturl = listdic[key].split("#")[0];
            for (var tvmkey in tvmdic) {
                var tvgname = "tvming-NULL"
                if (tvmkey.indexOf(key) != -1 || tvmdic[tvmkey].indexOf(key) != -1) {
                    tvgname = tvmdic[tvmkey];
                    break;
                } 
            }

            if (listdic[key].indexOf('smil') != -1) {
              cj = key +","+listdic[key]+","+ tvgname +"</br>";
            } else {
              cj = key+","+listdic[key]+","+tvgname +"</br>";
            }
            result += cj; 
        }
    } else if (action == "cntv-yuanban") {
        for (var key in listdic) {
            var firsturl = listdic[key].split("#")[0];
            for (var cntvkey in cntvdic) {
                var tvgname = "cntv-NULL"
                if (cntvkey.indexOf(key) != -1 || cntvdic[cntvkey].indexOf(key) != -1) {
                    tvgname = cntvdic[cntvkey];
                    break;
                } 
            }

            if (listdic[key].indexOf('smil') != -1) {
              cj = key +","+listdic[key]+","+ tvgname +"</br>";
            } else {
              cj = key+","+listdic[key]+","+tvgname +"</br>";
            }
            result += cj; 
        }
    } else {
    var { pinyin } = pinyinPro;
    if (!pinyin || pinyin == "undefined") {alert("页面组件还未加载完成,请过会重试！");}
    for (var key in listdic) {
        var firsturl = listdic[key].split("#")[0];
        if (key.indexOf('陕西') != -1) {
          iptvpy = pinyin(key, { toneType: 'none' }).replace(/\s+/g,"").replace(/\+/g,"plus").replace(/-/g,"").toLowerCase().replace(/fhd$|hd$|sd$|chaoqing$|gaoqing$|chaogaoqing$|biaoqing$|pindao$|dianshitai$/g,"").trim().replace(/\[.*?\]|[0-9\.]+m$|[0-9]{3,4}p|[0-9\.]+fps/g,"").replace(/btv/g,"beijing").replace(/shanxi/g,"shaanxi").trim();
        } else {
          iptvpy = pinyin(key, { toneType: 'none' }).replace(/\s+/g,"").replace(/\+/g,"plus").replace(/-/g,"").toLowerCase().replace(/fhd$|hd$|sd$|chaoqing$|gaoqing$|chaogaoqing$|biaoqing$|pindao$|dianshitai$/g,"").trim().replace(/\[.*?\]|[0-9\.]+m$|[0-9]{3,4}p|[0-9\.]+fps/g,"").replace(/btv/g,"beijing").trim();
        
        }
        
  
        var sstid = iptvpy.match(/cctv[0-9]{1,2}/g);if (sstid && sstid.length > 0 && !(iptvpy.match(/cctv4k|cctv8k|cctv5plus/))) { iptvpy = sstid[0]};
        var ssstid = iptvpy.match(/cctv[^0-9]+/);if (ssstid && ssstid.length > 0 ) { iptvpy = ssstid[0].replace(/cctv/g,"")};
        if (iptvpy.indexOf('cctv5plus') != -1) {iptvpy = 'cctv5plus'};
        
        if (action == "112114-muziling") {
            if (listdic[key].indexOf('PLTV') != -1 || listdic[key].indexOf('TVOD') != -1) {
              cj = key +","+listdic[key]+",tvmao-"+iptvpy + ","+ firsturl + "," + firsturl +"</br>";
            } else {
              cj = key+","+listdic[key]+",tvmao-"+iptvpy + ",," +"</br>";
            }
        } else if (action == "112114-yuanban") {
            cj = key+","+listdic[key]+",tvmao-"+iptvpy +"</br>";
        }
        result += cj; 
    };
    };
    
    document.getElementById("res").innerHTML = result;
    if (result) {DisplayAndHiddenBtn("copytext", "d");} else {DisplayAndHiddenBtn("copytext", "h");}
    if (result) {DisplayAndHiddenBtn("downtext", "d");} else {DisplayAndHiddenBtn("downtext", "h");}
    }


    function DisplayAndHiddenBtn(btnId, type) {
        var currentBtn = document.getElementById(btnId);
        if (type == "d") {
                currentBtn.style.display = "inline-block"; //style中的display属性
        } else if (type == "h") {
                currentBtn.style.display = "none";
        }
    }
</script>

<script type="text/javascript">
    function init() 
    {
        var dest = document.getElementById("source");
        dest.addEventListener("dragover", function(ev) 
        {
            ev.stopPropagation();
            ev.preventDefault();
        }, false);
    
        dest.addEventListener("dragend", function(ev) 
        {
            ev.stopPropagation();
            ev.preventDefault();
        }, false);
    
        dest.addEventListener("drop", function (ev) {
            ev.stopPropagation();
            ev.preventDefault();
    
            var file = ev.dataTransfer.files[0];
            var reader = new FileReader();
    
            if (file.type.substr(0, 4) != "text") {
                dest.innerHTML = "暂不支持此类文件的预览";
                dest.style.background = "white";
            }
            else if (file.type.substr(0, 4) == "text") {
    
                reader.readAsText(file);
                reader.onload = function (f) {
                    dest.innerHTML = "<pre>" + this.result + "</pre>";
                    dest.style.background = "white";
                }
            }
            else {
                dest.innerHTML = "暂不支持此类文件的预览";
                dest.style.background = "white";
            }
        }, false);
    }
    
    //设置页面属性，不执行默认处理（拒绝被拖放）
    document.ondragover = function(e){e.preventDefault();};
    document.ondrop = function(e){e.preventDefault();}
    
    window.onload=init;
</script>



<script type="text/javascript">
    function dl() {
        const data = document.getElementById("res").innerHTML.replace(/<br>/g,'\n'); 
        if (data.indexOf("EXTM3U") != -1) {var tt = "m3u"} else {var tt = "txt"}
        const blob = new Blob([data], {type: "text/plain"})
        const a= document.createElement("a")
        a.href = URL.createObjectURL(blob)
        a.download = "yourtv."+tt 
        a.click()
        URL.revokeObjectURL(a.href)
　　　  a.remove();
    }


    function copyText() {
        var text = document.getElementById("res").innerHTML;
        var input = document.createElement('textarea')
        input.innerHTML = text.replace(/<br>/g,"\n")
        input.setAttribute('readonly', 'readonly')
        document.body.appendChild(input)
        input.select();//选中文本
        document.execCommand("copy");
        document.body.removeChild(input)
    }
</script>


<script>
function readSingleFile(e) {
  var file = e.target.files[0];
  if (!file) {
    return;
  }
  var reader = new FileReader();
  reader.onload = function(e) {
    var contents = e.target.result;
    displayContents(contents);
  };
  reader.readAsText(file);
}

function displayContents(contents) {
  var element = document.getElementById('source');
  element.textContent = contents;
}
window.onload = function() {
document.getElementById('file-input').addEventListener('change', readSingleFile, false);}
</script>


<title>直播源转换</title>
</head>

<body> 
 
<div>
</br>
<input type="file" id="file-input" />
</div>
<div style="white-space:pre-line;">
<textarea id="source" name="source" form="usrform" placeholder="内容不会上传服务器,纯前端js处理的,绝不偷源!!!&#10;内容不会上传服务器,纯前端js处理的,绝不偷源!!!&#10;内容不会上传服务器,纯前端js处理的,绝不偷源!!!&#10;&#10;使用方法:&#10;注意下方选择自己想要匹配的epg源格式&#10;复制自己的diyp格式源到输入框内/拖拽本地文件到此窗口/选择打开本地txt文件 -> 选择格式 -> 提交&#10;&#10;m3u格式,需要配合本站pp.xml格式epg来使用!&#10;&#10;节目台标如有缺失,或者不对,不好看,请到首页自行上传台标!"   rows='16' cols='86'></textarea>
<div class="selectpicker">
            <label for="action">&nbsp ChaojiFormat:</label> <select id="action" name="action" style = "width:150px;">
                <option>112114-muziling</option>
                <option>112114-yuanban</option>
                <option>tvming-yuanban</option>
                <option>cntv-yuanban</option>
            </select></br>
</div>
</div>
<div style="white-space:nowrap">
<button class="btn btn-default" type="button" onclick="trans()">超级直播</button>
<button class="btn btn-default" type="button" onclick="tran2m3u()">m3u格式</button>
<button class="btn btn-default" type="button" onclick="tran2m3ugroup()">m3u分组</button>
<button class="btn btn-default" type="button" onclick="m3u2txt()">m3u2txt</button>
</div>
<hr />
<div>
</br>
<button style="display:none;" id="copytext" onclick="copyText()">一键复制</button>
<button style="display:none;" id="downtext" onclick="dl()">一键下载</button>
</div>
</br>
<div>
<p id="res" name="res"></p>
</div>
</body>
</script>
</html>
